package com.lowca.news.dao;

import com.lowca.news.dao.support.Pager;
import com.lowca.news.entity.User;
import com.lowca.news.web.formbean.AdminUserConditionForm;

public interface UserDao extends BaseDao<User, Long>{

	User findByUsername(String username);

	User findByEmail(String email);

	boolean existByUsername(String username);

	boolean existByEmail(String email);

	User findByUsernameAndPassword(String username, String password);

	Pager<User> searchUser(AdminUserConditionForm condition, int pageNo,
			int pageSize);

}
